package com.xyyl.patient.core.entity;

import java.io.Serializable;

/**
 * @ClassName: BaseObject
 * @Description: 基础属性封装
 * @author chens
 * @date 2017年8月17日
 *
 */
public class BaseObject implements Serializable {

	private static final long serialVersionUID = 1L;

	/** 主键 **/
	private Long id;

	/** 创建人 **/
	private String createdby;

	/** 创建时间 **/
	private Long createAt;

	/** 状态 **/
	private Integer status;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCreatedby() {
		return createdby;
	}

	public void setCreatedby(String createdby) {
		this.createdby = createdby;
	}

	public Long getCreateAt() {
		return createAt;
	}

	public void setCreateAt(Long createAt) {
		this.createAt = createAt;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}
		if (obj == null) {
			return false;
		}
		if (getClass() != obj.getClass()) {
			return false;
		}
		BaseObject other = (BaseObject) obj;
		if (id == null) {
			if (other.id != null) {
				return false;
			}
		} else if (!id.equals(other.id)) {
			return false;
		}
		return true;
	}

}
